#pragma once

#include <functional>
#include "Sock.h"
#include "InetAddress.h"
#include "Channel.h"
#include "EventLoop.h"
class Channel;
class EventLoop;
class Connection
{
public:
    Connection(EventLoop *loop, Sock *clentSock);
    ~Connection();

private:
    EventLoop *loop_;
    Sock *clientSock_;
    Channel *clientChannel_;
};
